package emulator.GUI.io;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

import emulator.hardware.io.Via6522;


public class TestViaPanel
{
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		Via6522 via = new Via6522();
        JFrame win = new JFrame("VIA 1");
        Via6522panel viaPanel = new Via6522panel(via, "TestVia");
		win.getContentPane().add(viaPanel);
        win.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
        win.pack();
        win.setVisible(true);
        viaPanel.updateFromVia();
	}

}
